package com.woniuxy.order.feign;

import com.woniuxy.core.model.Result;

import com.woniuxy.stall.dao.StallInfo;
import com.woniuxy.stall.dao.StallRentTime;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "stall-server")
@ComponentScan
public interface StallInfoClient {

    @GetMapping("/stall/stallInfo/findStallById")
    Result<StallInfo> findStallById(@RequestParam("stallInfoId") Integer stallInfoId);
    @GetMapping("/stall/stallInfo/findStallNumById")
    Result<String> findStallNumById(@RequestParam("stallInfoId") Integer statllInfoId);
    @GetMapping("/stall/stallRentTime/getStallRentTimeByStallId")
    Result<StallRentTime> getStallRentTimeByStallId(@RequestParam("stallInfoId") Integer stallInfoId);
}
